import React,{Suspense}from 'react';
import './App.scss';
import {useRoutes} from 'react-router-dom'
import routes from './router/index'

function App() {
  return (
    <div className="App">
      {/* 渲染路由规则 */}
      <Suspense>
        {
          useRoutes(routes)
        }
      </Suspense>
    </div>
  );
}

export default App;
